#include "stampmenu.h"
#include "ui_stampmenu.h"

StampMenu::StampMenu(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::StampMenu)
{
    ui->setupUi(this);

//    //暂时不可用
//    ui->get_Btn->setEnabled(false);
//    ui->get_wait_Btn->setEnabled(false);
//    ui->get_above_Btn->setEnabled(false);
//    ui->get_end_Btn->setEnabled(false);

//    ui->put_Btn->setEnabled(false);
//    ui->put_wait_Btn->setEnabled(false);
//    ui->put_above_Btn->setEnabled(false);
//    ui->put_end_Btn->setEnabled(false);
}

StampMenu::~StampMenu()
{
    delete ui;
}

void StampMenu::on_forwardPage_Btn_clicked()
{
    this->close();
    emit stampForwardPage();
}

//void StampMenu::on_nextPage_Btn_clicked()
//{
//    emit stampNextPage();
//}

void StampMenu::on_get_Btn_clicked()
{
    emit getInstruction();
}

void StampMenu::on_get_wait_Btn_clicked()
{
    emit getWaitInstruction();
}

void StampMenu::on_get_above_Btn_clicked()
{
    emit getAboveInstruction();
}

void StampMenu::on_get_end_Btn_clicked()
{
    emit getEndInstruction();
}

void StampMenu::on_put_Btn_clicked()
{
    emit putInstruction();
}

void StampMenu::on_put_wait_Btn_clicked()
{
    emit putWaitInstruction();
}

void StampMenu::on_put_above_Btn_clicked()
{
    emit putAboveInstruction();
}

void StampMenu::on_put_end_Btn_clicked()
{
    emit putEndInstruction();
}


